package managers;

import java.sql.SQLException;
import java.util.List;

import workspace.Workspace;
import beans.Foglalo;

public interface FoglaloManager {
	public List<Foglalo> loadFoglaloLista(Workspace workspace)
			throws SQLException;

	public Foglalo insertFoglalo(Workspace workspace, Foglalo newFoglalo)
			throws SQLException;

	public Foglalo updateFoglalo(Workspace workspace, Foglalo updatedFoglalo)
			throws SQLException;

	public boolean deleteFoglalo(Workspace workspace, long userId)
			throws SQLException;

	boolean deleteFoglaloForTest(Workspace workspace, long id)
			throws SQLException;
}
